package com.qf.wangqing.sportsnews.bean;

import android.databinding.ObservableInt;

import com.google.gson.annotations.Expose;
import com.qf.wangqing.sportsnews.BR;
import com.qf.wangqing.sportsnews.R;
import com.qf.wangqing.sportsnews.adapter.recommendadapter.RDCommentPagerAdapter;

import java.util.List;

/**
 * Created by WangQing on 2016/12/16.
 */

public class RecommendDataEntity {
    private int limit;
    private double head_version;
    private double data_version;
    private List<RecommendBannersEntity> banners ;
    //设置viewpager页数变化的变量
    @Expose(serialize = false,deserialize = false)
    private ObservableInt currentPage = new ObservableInt(0);

    public ObservableInt getCurrentPage() {
        return currentPage;
    }

    @Expose(serialize = false,deserialize = false)
    private RDCommentPagerAdapter adapter;

    public RDCommentPagerAdapter getAdapter() {
        if (adapter == null) {
            adapter = new RDCommentPagerAdapter(banners, R.layout.rd_focus_image, BR.banners);
        }
        return adapter;
    }

    private int notice_num;
    private int contest_ing_num;
    private List<RecommendTopsEntity> tops;
    private List<RecommendContestListEntity> contest_list;
    private List<RecommendContentsEntity> contents;

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public double getHead_version() {
        return head_version;
    }

    public void setHead_version(double head_version) {
        this.head_version = head_version;
    }

    public double getData_version() {
        return data_version;
    }

    public void setData_version(double data_version) {
        this.data_version = data_version;
    }

    public List<RecommendBannersEntity> getBanners() {
        return banners;
    }

    public void setBanners(List<RecommendBannersEntity> banners) {
        this.banners = banners;
    }

    public int getNotice_num() {
        return notice_num;
    }

    public void setNotice_num(int notice_num) {
        this.notice_num = notice_num;
    }

    public int getContest_ing_num() {
        return contest_ing_num;
    }

    public void setContest_ing_num(int contest_ing_num) {
        this.contest_ing_num = contest_ing_num;
    }

    public List<RecommendContestListEntity> getContest_list() {
        return contest_list;
    }

    public void setContest_list(List<RecommendContestListEntity> contest_list) {
        this.contest_list = contest_list;
    }

    public List<RecommendContentsEntity> getContents() {
        return contents;
    }

    public void setContents(List<RecommendContentsEntity> contents) {
        this.contents = contents;
    }

    public List<RecommendTopsEntity> getTops() {
        return tops;
    }

    public void setTops(List<RecommendTopsEntity> tops) {
        this.tops = tops;
    }
}
